3637. Trionic Array I Leetcode Daily - Python